home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix024 / libray / libcommon / vecmath.c.diff < prev    next >
Text File  |  1995-02-13  |  422b  |  24 lines

  1. *** vecmath.c    Mon Oct 11 15:00:58 1993
  2. --- vecmath.c.frac    Mon Oct 11 14:47:18 1993
  3. ***************
  4. *** 75,80 ****
  5. --- 75,92 ----
  6.   }
  7.   
  8.   /*
  9. +  * Compute (euclidian) distance between two points [PhB]
  10. +  */
  11. + Float
  12. + VecDist(a, b)
  13. + Vector *a, *b;
  14. + {
  15. +         Vector temp;
  16. +         VecSub(*a, *b, &temp);
  17. +         return VecNorm(temp);
  18. + }
  19. + /*
  20.    * Compute cross-product of a and b, place result in o.
  21.    */
  22.   void
  23.